# -*- coding: utf-8 -*-

# todo: integrate lib with other proj
from mpdev.lib.myencrypt import encrypt_aes, decrypt_aes


class Zeroleo12345Crypt:
    def dumps(self, data, key):
        return encrypt_aes(key, data, usebase64=True)

    def loads(self, data, key):
        return decrypt_aes(key, data, usebase64=True)
